import requests
req =  requests.get("https://www.baidu.com")
req.encoding = 'utf-8'
print(req.status_code)
print(req.cookies)
print(req.text)